package org.loofer.ext.component.logger;

import org.loofer.ext.component.logger.LoggerFile.Log4jWrapper;

class Log4j {
    private static Log4jWrapper log4j = LoggerFile.getLog4j("Logger");

    Log4j() {
    }

    public static void v(String tag, String text) {
        log4j.trace("[" + tag + "]" + text);
    }

    public static void i(String tag, String text) {
        log4j.info("[" + tag + "]" + text);
    }

    public static void d(String tag, String text) {
        log4j.debug("[" + tag + "]" + text);
    }

    public static void w(String tag, String text) {
        log4j.warn("[" + tag + "]" + text);
    }

    public static void e(String tag, String text) {
        log4j.error("[" + tag + "]" + text);
    }

    public static void e(Exception e) {
        log4j.error((Throwable) e);
    }

    public static void v(String text) {
        log4j.trace("[Logger]" + text);
    }

    public static void i(String text) {
        log4j.info("[Logger]" + text);
    }

    public static void d(String text) {
        log4j.debug("[Logger]" + text);
    }

    public static void w(String text) {
        log4j.warn("[Logger]" + text);
    }

    public static void e(String text) {
        log4j.error("[Logger]" + text);
    }
}
